Learn R Programming

rmutil (version 1.1.9)

Gamma Count: Gamma Count Distribution

Description

These functions provide information about the gamma count distribution with parameters m and s: density, cumulative distribution, quantiles, and random generation.

The gamma count distribution with prob \(= m\) has density $$p(y) = pgamma(\mu \sigma,y \sigma,1)-pgamma(\mu \sigma,(y+1) \sigma,1) $$ for \(y = 0, \ldots, n\) where \(pgamma(\mu \sigma,0,1)=1\).

Usage

dgammacount(y, m, s, log=FALSE)
pgammacount(q, m, s)
qgammacount(p, m, s)
rgammacount(n, m, s)

Arguments

y

vector of frequencies

q

vector of quantiles

p

vector of probabilities

n

number of values to generate

m

vector of probabilities

s

vector of overdispersion parameters

log

if TRUE, log probabilities are supplied.

Author

J.K. Lindsey

See Also

dpois for the Poisson, dconsul for the Consul generalized Poisson, ddoublepois for the double Poisson, dmultpois for the multiplicative Poisson distributions, and dnbinom for the negative binomial distribution.

Examples

Run this code
dgammacount(5,10,0.9)
pgammacount(5,10,0.9)
qgammacount(0.08,10,0.9)
rgammacount(10,10,0.9)

Run the code above in your browser using DataLab